package org.springframework.validation.executors.impl;

import org.springframework.validation.executors.ValidWhenEmptyRuleExecutor;
import org.springframework.validation.util.ValidationRulesUtils;

public class MinLengthRuleExecutor extends ValidWhenEmptyRuleExecutor {
	
	@Override
	public boolean doValidate(Object model, Object argument) {
		return ValidationRulesUtils.getLength(model) >= Integer.valueOf(String.valueOf(argument));
	}

}
